<?php



class LoggedInPage
{
	
	public function LoggedIn($username)
	{
		require_once("todaysDateAndTimeSwe.php");
			
		$todaysDateAndTimeSwe = new TodaysDateAndTimeSwe();
		
		$todaysDateAndTime = $todaysDateAndTimeSwe->getTodaysDate();
		
		
		return '
		<html xmlns="http://www.w3.org/1999/xhtml" >
			<head>
				<title>Labb1 del 3</title>
				
				<meta http-equiv=\'content-type\' content=\'text/html; charset=utf8\'>
				
			</head>
			<body>
				<h1> Labb 1 part 3 <br> </h1> <h2>'. $username .' är inloggad. </h2>
					<p>'. htmlspecialchars($_SESSION['message']) .'</p>
					</h2> <a href = "?logout">Logout</a> 
				<p>'. $todaysDateAndTime .'</p>
			</body>	
		</html>';
		
		
	}
	
	
}



























































